package test

import (
	"awesome/model"
	"fmt"
)

func main() {
	var tom model.Person
	fmt.Println(tom.Name == "")
	tom.Id = 10
	tom.Age = 20
	tom.Name = "tom"
	fmt.Printf("tom:%v\n", tom) //tom:{10 tom 20}

	var jack = model.Person{
		Id:   11,
		Age:  20,
		Name: "jack",
	}
	fmt.Printf("jack:%v\n", jack)
	//匿名结构体
	var dog struct {
		id   int
		name string
	}
	dog.id = 1
	dog.name = "zxx"
	fmt.Printf("tom:%v\n", dog)
}
